const { getshoperdata } = require('../../service/shopper/shoper.js')
module.exports = {
    async getshopperinfo(ctx, next) {
        const { userid } = ctx.query
        const rudata = await getshoperdata({ userid: +userid })
        if (rudata) {
            return ctx.body = {
                code: 200,
                msg: '获取成功',
                data: rudata
            }
        }
        return ctx.body = {
            code: 0,
            msg: '获取失败'
        }
    }
}